package org.springDI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        
        ApplicationContext ac = new
        
        ClassPathXmlApplicationContext("spring-DI.xml");
        
        Human human = ac.getBean(Human.class);
        human.eat();
    }
}
